{include file="admin/header.tpl" title="header" }
<div id="content">
      {php} echo display_msg(); {/php}
      <h2>Users</h2>
      
       <div class="lstable">
       <form action="{$baseurl}/admin/users.php" method="post">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="10%" align="left" valign="middle"><strong>User Name :</strong></td>
            <td width="15%" align="left" valign="middle"><input type="text" name="username" value="{$post.username}"  /></td>
            <td width="75%">&nbsp;</td>
          </tr>
          <tr>
            <td align="left" valign="middle">&nbsp;</td>
            <td align="left" valign="middle">
            	<input type="submit"  class="btncss" name="submit" class="btnSearch" value="Search" /> &nbsp;
                <input class="btncss" type="button" onclick="location.href='{$baseurl}/admin/users.php'" value="Reset" />
            </td>
          </tr>
        </table>
        </form>
      </div>
       <div><img src="{$admin_imgurl}/spacer.gif" width="1" height="25" alt="spacer" /></div>
      
      <div>
        <table cellspacing="0" cellpadding="0" class="engineTable">
          <thead>
            <tr >
              <th width="8%" align="center" valign="top" >Sr. No</th>
              <th width="20%" align="left" valign="top">Name</th>
              <th width="15%" align="left" valign="top">User ID</th>
              <th width="15%" align="left" valign="top">Phone</th>
              <th width="12%" align="center" valign="top" colspan="1">Actions</th>
            </tr>
          </thead>
          <tbody>
          {assign var='counter' value=$pagination_start}
       	{foreach from=$users item=row}
            {assign var='counter' value=$counter+1}     
            <tr class="{cycle values="even,odd"}">
              <td align="center" valign="top">{$counter}</td>
              <td align="left" valign="top">{$row.name}</td>
              <td align="left" valign="top">{$row.username}</td>
              <td align="left" valign="top">{$row.phone_no}</td>
              <td align="center"> <a title="Edit" href="{$baseurl}/admin/users.php?action=edit&user_id={$row.user_id}"> <img src="{$admin_imgurl}/edit.png"/> </a> </td>
             <!-- <td align="center">
              <a title="Delete" href="{$baseurl}/admin/users.php?action=delete&user_id={$row.user_id}" onClick="return confirm('Are You Sure To Delete?')"><img src="{$admin_imgurl}/del.png"  /> </a>
              </td>-->
            </tr>
        {foreachelse}
           <tr><td colspan="9" align="center"> No Record Found </td></tr>
        {/foreach}
            
          </tbody>
        </table>
        <div class="pagination tn">
           <div class="page_limit_div">
        		 {$page_limit_select}
	        </div>
           {$pagination}
          <div class="totalno"><strong>Total Records:</strong> {$total_records}</div>
          <div class="clear"></div>
        </div>
      </div>
    </div>
   {include file="admin/footer.tpl" title="footer"}   